#include "Import/RIVIAImageImporter.h"

#include <opencv2/imgcodecs.hpp>

#include "IRIVIAProject.h"

RIVIAImageImporter::RIVIAImageImporter()
{

}

RIVIAImageImporter::~RIVIAImageImporter()
{

}

bool RIVIAImageImporter::execImport()
{
    cv::Mat image;
    image = cv::imread(m_strFileName.toStdString(), cv::IMREAD_COLOR); // Read the file

    //pass image to RIVIAEnity
    IRIVIAProject::getInstance()->addImage(image);

    return true;
}
